package com.biblioteca.entity;

public abstract class Entity {
	protected int codigo;	
	private static int codigoAtual = 0;
	
	public Entity(){
		 this.codigo = ++Entity.codigoAtual;
	}
	
	public int getCodigo(){
		return this.codigo;
	}
}
